.zhu4-container {
  width: 100%;
  height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 导航栏样式 */
.zhu4-navbar {
  background-color: white;
  border-bottom: 1px solid #e8e8e8;
}

.nav-icon {
  font-size: 16px;
  color: #666;
}

/* 患者信息区域 */
.patient-info {
  background-color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e8e8e8;
}

.patient-basic {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patient-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.patient-id {
  font-size: 14px;
  color: #666;
}

.switch-patient {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #1890ff;
  font-size: 14px;
  cursor: pointer;
}

/* 日期选择和总金额区域 */
.summary-section {
  background-color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 1px;
}

/* 日期选择器 */
.date-button {
  height: 40px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  color: #333;
  padding: 0 16px;
}

.date-button:hover {
  border-color: #1890ff;
  color: #1890ff;
}

/* 总金额显示 */
.total-cost {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.total-label {
  font-size: 14px;
  color: #666;
}

.total-amount {
  font-size: 20px;
  font-weight: 700;
  color: #ff4d4f;
}

/* 账单卡片 */
.bill-card {
  flex: 1;
  margin: 0;
  background-color: white;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.bill-card .adm-card-body {
  padding: 0;
}

/* 表格头部 */
.table-header {
  display: flex;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e8e8e8;
  padding: 12px 16px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  border-top: 1px solid #e8e8e8;
}

.header-cell {
  padding: 0 8px;
  text-align: center;
}

.header-cell.item-name {
  flex: 2;
  text-align: left;
}

.header-cell.unit-price {
  flex: 1.5;
}

.header-cell.quantity {
  flex: 1;
}

.header-cell.amount {
  flex: 1.5;
}

/* 表格内容 */
.table-body {
  max-height: calc(100vh - 300px);
  overflow-y: auto;
}

.table-row {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 16px;
  align-items: center;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:hover {
  background-color: #f8f9fa;
}

.table-cell {
  padding: 0 8px;
  font-size: 14px;
  color: #333;
}

.table-cell.item-name {
  flex: 2;
  text-align: left;
}

.table-cell.unit-price {
  flex: 1.5;
  text-align: center;
}

.table-cell.quantity {
  flex: 1;
  text-align: center;
}

.table-cell.amount {
  flex: 1.5;
  text-align: center;
}

/* 项目名称样式 */
.item-title {
  font-weight: 500;
  line-height: 1.4;
  word-break: break-all;
}

/* 价格样式 */
.price-text {
  color: #666;
  font-size: 13px;
}

/* 数量样式 */
.quantity-text {
  font-weight: 500;
}

/* 金额样式 */
.amount-text {
  font-weight: 600;
  color: #333;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .patient-info,
  .summary-section {
    padding: 12px;
  }
  
  .bill-card {
    margin: 12px;
  }
  
  .table-header,
  .table-row {
    padding: 10px 12px;
  }
  
  .header-cell,
  .table-cell {
    padding: 0 4px;
    font-size: 13px;
  }
  
  .total-amount {
    font-size: 18px;
  }
  
  .date-button {
    height: 36px;
    font-size: 14px;
    padding: 0 12px;
  }
}

/* 滚动条样式 */
.table-body::-webkit-scrollbar {
  width: 4px;
}

.table-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.table-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.table-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
